package com.cc.cbdb.common.constants;

/**
 * Created by tollcc on 2018/3/15.
 */

public class Constant {

    /*--------------------------------------------- IP -----------------------------------------------------*/
//    public static final String DOMAIN_PROJECT = "http://192.168.1.108:8080/CBDB/";                //本地IP

//    public static final String DOMAIN_PROJECT = "http://192.168.23.1:8080/CBDB/";           //公司Ip

    public static final String DOMAIN_PROJECT = "http://115.28.16.207:8088/CBDB/";           //服务器IP

    public static final String CBDBAPI = "http://cbdb.fas.harvard.edu/cbdbapi/person.php?id=";

    public static final String CBDBINDEX = "https://projects.iq.harvard.edu/chinesecbdb";   //CBDB官网

    public static final String CBDBOPTION = "http://db1.ihp.sinica.edu.tw/cbdb/help/systemintro.html";  //CBDB操作说明

    public class URL{

        public static final String URL_QAPI = "queryPersonAPI";                                    //CBDB API

        public static final String URL_QNAME = "queryNameCustom";                                  //人名查询

        public static final String URL_QBIOGADDR = "queryBiogAddr";                               //地名查询

        public static final String URL_QBIOGOFF = "queryOffNameCustom";                           //官名查询

        public static final String URL_QPERSONENTRY = "queryPersonEntry";                         //入仕查询

        public static final String URL_QUERYCHORONYM = "queryChoronym";                           //郡望查询

        public static final String URL_QDYALL = "queryAllDn";                                      //朝代查询

        public static final String URL_QADDRTYPES = "queryBiogAddrCodes";                         //地址类别查询

        public static final String URL_QAPPOINTMENT = "queryAppointment";                         //官职除授类别查询

        public static final String URL_QOFFCATEGORY = "queryOfficeCategory";                      //官职类别查询

        public static final String URL_QBIOGINST = "queryBiogInst";                                //社交角色查询

        public static final String URL_QETHNICITY = "queryEthnicity";                             //种族、部族查询

        public static final String URL_QINSTITUTION = "queryInstCustom";                          //社交机构查询

        public static final String URL_QSTATUSCODE = "queryStatusCodes";                            //社会区分查询

        public static final String URL_QTEXTROLE = "queryTextRole";                                 //著作角色查询

        public static final String URL_QADVANCEDQUERY = "advancedQuery";                            //进阶查询

        public static final String URL_QKINSHIP = "queryKinship";                                   //亲属关系查询

        public static final String URL_QKUNSHIPPERSON = "queryKinshipRelation";                     //人物亲属关系查询

        public static final String URL_QASSOCPERSON = "queryAssocRelation";                         //人物社会关系查询

    }

    public class HTML{
        public static final String HTML_ADDRTREE = "views/addrTree.html";                         //地址树

        public static final String HTML_OFFICETREE = "views/officeTree.html";                    //官名树

        public static final String HTML_QPOSTOFFTAB = "views/postedOffAddrTable.html";          //官名迁移表

        public static final String HTML_QSELEADDR = "views/selectAddrTree.html";                 //选择地址

        public static final String HTML_QSELEOFFICE = "views/selectOfficeTree.html";            //选择官名

        public static final String HTML_QENTRYTYPE = "views/selectEntryType.html";               //选择入仕类别

        public static final String HTML_QASSOC = "views/selectAssocTree.html";                   //选择社会关系

        public static final String HTML_RELATIONGRAPH = "views/relationGraph.html";             //人物间的关系图
    }

    public class TITLE{

        public static final String TITLE_QNAME = "人名查询";

        public static final String TITLE_QBIOGADDR = "地址查询相关人物";

        public static final String TITLE_QBIOGOFF = "官名查询相关人物";

        public static final String TITLE_QETHNICITY = "种族/部族";

        public static final String TITLE_QADDR = "地址";

        public static final String TITLE_QOFFICE = "官名";

        public static final String TITLE_QENTRYTYPE = "入仕类别";

        public static final String TITLE_QINSTITUTION = "社会机构";

        public static final String TITLE_QSTATUSCODE = "社会区分";

        public static final String TITLE_QADVANCEDQUERY = "进阶查询相关人物";

        public static final String TITLE_QASSOC = "社会关系";

        public static final String TITLE_KINSHIP = "亲属关系";

        public static final String TITLE_SELECTPERSON = "选择人物";

        public static final String TITLE_KINSHIPRESULT = "亲属关系相关人物";

        public static final String TITLE_ASSOCRESULT = "社会关系相关人物";

        public static final String TITLE_RELATIONGRAPH = "人物关系图";

    }

    public class SVTAB{

        public static final String SV_NAMES_TAB = "person_names";                                  //人名表

        public static final String SV_ETHNICITY_TAB = "ethnicity";                                 //部落/部族表

        public static final String SV_INSTITUTION_TAB = "institution";                            //社会机构表

        public static final String SV_STATUSCODE_TAB = "statusCode";                                //社会区分表

        public static final String SV_KINSHIP_TAB = "kinship";                                      //亲属关系表

    }
}
